package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ShowingScheduleMapper;
import com.ruoyi.system.domain.ShowingSchedule;
import com.ruoyi.system.service.IShowingScheduleService;

/**
 * 排片信息数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-28
 */
@Service
public class ShowingScheduleServiceImpl implements IShowingScheduleService 
{
    @Autowired
    private ShowingScheduleMapper showingScheduleMapper;

    /**
     * 查询排片信息数据
     * 
     * @param showingId 排片信息数据主键
     * @return 排片信息数据
     */
    @Override
    public ShowingSchedule selectShowingScheduleByShowingId(Long showingId)
    {
        return showingScheduleMapper.selectShowingScheduleByShowingId(showingId);
    }

    /**
     * 查询排片信息数据列表
     * 
     * @param showingSchedule 排片信息数据
     * @return 排片信息数据
     */
    @Override
    public List<ShowingSchedule> selectShowingScheduleList(ShowingSchedule showingSchedule)
    {
        return showingScheduleMapper.selectShowingScheduleList(showingSchedule);
    }

    /**
     * 新增排片信息数据
     * 
     * @param showingSchedule 排片信息数据
     * @return 结果
     */
    @Override
    public int insertShowingSchedule(ShowingSchedule showingSchedule)
    {
        return showingScheduleMapper.insertShowingSchedule(showingSchedule);
    }

    /**
     * 修改排片信息数据
     * 
     * @param showingSchedule 排片信息数据
     * @return 结果
     */
    @Override
    public int updateShowingSchedule(ShowingSchedule showingSchedule)
    {
        return showingScheduleMapper.updateShowingSchedule(showingSchedule);
    }

    /**
     * 批量删除排片信息数据
     * 
     * @param showingIds 需要删除的排片信息数据主键
     * @return 结果
     */
    @Override
    public int deleteShowingScheduleByShowingIds(Long[] showingIds)
    {
        return showingScheduleMapper.deleteShowingScheduleByShowingIds(showingIds);
    }

    /**
     * 删除排片信息数据信息
     * 
     * @param showingId 排片信息数据主键
     * @return 结果
     */
    @Override
    public int deleteShowingScheduleByShowingId(Long showingId)
    {
        return showingScheduleMapper.deleteShowingScheduleByShowingId(showingId);
    }
}
